<?php

function poiProductCellRender($cell, $data) {
    switch($cell->getColumn()->getName()){
        case 'status':
            $text = $cell->getCellText();
            $status = Kd_Localize_Helper::getLanguageItems('status.publication');
            return '<span>' . $status[$text] . '</span>';
        case 'poi':
            $arr = $data['poi_ids'];
            return '<span>'.implode('<br/>', $arr).'</span>';
    }

    return FALSE;
}

$this->grid->setCellRender(poiProductCellRender);

$this->setLayout('template' . DS . 'default.phtml');
$this->startBlock('topbar');
echo $this->navigation->toHtml();
$this->endBlock();

$this->startBlock();
echo $this->loadTemplate('share' . DS . 'grid.phtml', array('grid' => $this->grid, 'toolbar' => $this->toolbar, 'pagination' => $this->pagination));
$this->endBlock();

$this->startBlock('bottombar');
echo $this->pagination->toHtml();
$this->endBlock();